<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>验证码</title>
</head>
<body>

<!--方法1-->   <!--配置 可以在 config 设置-->
<div>{:captcha_img()}</div>
<hr>
<!--<div><img src="{:captcha_src()}" alt="captcha"></div>-->


<hr>
<!--方法2-->
<div><img src="../code/show" onclick="this.src='../code/show?'+Math.random()" alt="captcha"></div>

<form action="../Code/check" method="post" >
    <input type="text" name="code">
    <input type="submit" value="提交">
</form>
</body>
</html>